<?php if (!defined('THINK_PATH')) exit();?><div class="ajax_cat_list">

<?php $tag_cat_class = new \Common\Taglib\cat();$li = $tag_cat_class->run(array('listname'=>'li','type'=>$type,'pid'=>'0','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="cli">
    <div class="cl"><?php echo ($li["c_title"]); ?></div>
	<div class="cr">		
			<?php $tag_cat_class = new \Common\Taglib\cat();$lis = $tag_cat_class->run(array('listname'=>'lis','type'=>'qus','pid'=>$li['c_id'],'cache'=>'0',)); ?>
			<?php if(is_array($lis["list"])): $i = 0; $__LIST__ = $lis["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$lis): $mod = ($i % 2 );++$i;?><span title="<?php echo ($lis["c_title"]); ?>" category1="<?php echo ($lis["c_pid"]); ?>" category2="<?php echo ($lis["c_id"]); ?>"><?php echo ($lis["c_title"]); ?></span><?php endforeach; endif; else: echo "" ;endif; ?>
	</div>
	<div class="clear"></div>
  </div><?php endforeach; endif; else: echo "" ;endif; ?>
  				 
</div>
<script type="text/javascript">
$('.ajax_cat_list span').click(function()
{
	$('.ajax_cat_list span').removeClass('select');
	$(this).addClass('select');
});
</script>